<span id="page" style="position:absolute; left:30px; top:30px;">
<table width="80%">
<?php
  if (!isset($_GET['f_id']) || $_GET['f_id']=='') {
    if ($_GET['action'] == 'd') {
      echo "File was deleted.";
    }
    echo "<tr>";
    cteate_folder($_GET['f_id']);
    echo "</tr>";
  }
  else {
    //if click a folder
    if (is_folder($_GET['f_id'])) {
      if ($_GET['action'] == 'u') {
        echo "<tr><td class=\"style3\">";
        echo "<h3>Upload file to folder ".current_folder_name($_GET['f_id']).":</h3>";
        echo "</td></tr><table>";
        upload_file_page($_GET['f_id']);
        echo '</table>';
      }
      else {
        echo "<tr>";
        cteate_folder($_GET['f_id']);
        echo "</tr><tr>";
        upload_file($_GET['f_id']);
        delete_folder($_GET['f_id']);
        echo "</tr><tr>";
        file_table($_GET['f_id'], $_SESSION['user_id']);
        echo "</tr>";
      }
    } 
    //if click a file
    else {
      if ($_GET['action'] == 'd') {
        echo "Files were deleted!";
      }
      else {
        file_info($_GET['f_id']);
      }
    }
  }
?>

</table>
</span>
